package lab01;

/**
 * Created by tanfei on 2017/10/8.
 */
public class Test13 {
    public static void main(String[] args) {
        int a,b,c,d;
        for (d=100;d<=1000;d++){
            a=d%10;
            b=d/10%10;
            c=d/100%10;
            if (d==Math.pow(a,3)+Math.pow(b,3)+Math.pow(c,3))
                System.out.println(d+"");
        }
    }
}
